package com.demo.test.mongodb.pojo;

import java.util.List;

public class BucketResult {
    private String id; // 分桶的 ID（例如，分桶边界）
    private int count; // 每个桶的学生数量
    private List<String> students; // 每个桶内的学生姓名
    private List<String> grades; // 每个桶内的年级信息
    private int totalScore; // 每个桶内的分数总和

    // Getters and setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public List<String> getStudents() {
        return students;
    }

    public void setStudents(List<String> students) {
        this.students = students;
    }

    public List<String> getGrades() {
        return grades;
    }

    public void setGrades(List<String> grades) {
        this.grades = grades;
    }

    public int getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(int totalScore) {
        this.totalScore = totalScore;
    }

    @Override
    public String toString() {
        return "BucketResult{id='" + id + "', count=" + count + ", students=" + students + ", grades=" + grades + ", totalScore=" + totalScore + "}";
    }
}
